<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>企业微信</title>
	<style type="text/css">
		.card{
			width: 100%;
			border: none;
			margin: none;
			padding: none;
			outline:none;
			background-color: #EFDBD0;
			height: 2400px;
		}
		.head{
			width: 80%;
			position:relative;
			left:5%;
			top: 150px;
			height: 100px;
			background-color: #E2929B;
			color: #000;
			padding: 10px 40px 70px 50px;
			font-size: 45px;
			border-radius: 10px;
			box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
		}

		.content{
			width: 80%;
			position:relative;
			left:6%;
			top: 100px;
			background-color: #FFFFFF;
			color: #000000;
			padding: 40px;
			font-size: 45px;
			border-radius: 10px;
			height: 800px;
			box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
		}
		.text{
			position: relative;
			top: -50px;
		}
		.tail{
			width: 80%;
			top: 150px;
			height: 100px;
			color: #000;
			padding: 10px 40px 70px 50px;
			font-size: 40px;

		}
		.round_button {
			position:relative;
			left:35%;
			top: 200px;
			border: 1px solid;
			display: block;
			font: bold 45px Arial, sans-serif;
			text-decoration: none;
			text-align: center;
			line-height: 50px;
			width: 250px;
			height: 100px;
			margin: 10px;
			-webkit-border-radius: 15px;
			-moz-border-radius: 15px;
			/* Old Firefox */
			border-radius: 15px;
			-webkit-transition: all 0.15s ease;
			-moz-transition: all 0.15s ease;
			-o-transition: all 0.15s ease;
			-ms-transition: all 0.15s ease;
			transition: all 0.15s ease;
		}

		.blue {
			color: #fff;
			background: #E2929B;
		}
	</style>
	<script src="/static/js/jquery-3.5.1.min.js"></script>
</head>
<body style="outline:none;border:none;background-color: #EFDBD0;">
<div class="card">
	<div class="content">
		<div class="text">
			<p id="nowtime" style="position:relative;color:#ED1213;font-weight:bold">2021-09-03 17:30:30</p>
			<p id="n1" style="position:relative;color:#000000;font-weight:bold;font-size:50px;"></p>
			<p style="position:relative;color:#0102F3;font-weight:bold">姓名：<span style="color:#000000" id="n2"></span></p>
			<p style="position:relative;color:#0102F3;font-weight:bold">学号：<span style="color:#000000" id="n3"></span></p>
			<p style="position:relative;color:#0102F3;font-weight:bold">学院：<span style="color:#000000" id="n4"></span></p>
			<p style="position:relative;color:#0102F3;font-weight:bold">校区：<span style="color:#000000" id="n5"></span></p>
			<p style="position:relative;color:#0102F3;font-weight:bold">日期：<span style="color:#000000" id="n6"></span></p>
			<p style="position:relative;color:#0102F3;font-weight:bold">备注：<span style="color:#000000" id="n7"></span></p>
		</div>
	</div>
	<div class="tail">
		<input type="button" id="yessub" value="提  交" class="round_button blue" />
	</div>
</div>
</body>
<script type="text/javascript">
	function getQueryVariable(variable)
	{
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (var i=0;i<vars.length;i++) {
			var pair = vars[i].split("=");
			if(pair[0] == variable){return pair[1];}
		}
		return(false);
	}
	//?n1=出校二维码&n2=赖宝强&n3=2019200815&n4=信息科学与技术学院&n5=东校区&n6=2021-09-03
	var walktype = decodeURI(getQueryVariable("n1"));
	/*if(walktype.indexOf("出校") != -1){
		$("#n11").html("离校");
	}else{
		$("#n11").html("进校");
	}*/
	document.getElementById("n1").innerHTML = walktype;
	document.getElementById("n2").innerHTML = decodeURI(getQueryVariable("n2"));
	document.getElementById("n3").innerHTML = decodeURI(getQueryVariable("n3"));
	document.getElementById("n4").innerHTML = decodeURI(getQueryVariable("n4"));
	document.getElementById("n5").innerHTML = decodeURI(getQueryVariable("n5"));
	document.getElementById("n6").innerHTML = decodeURI(getQueryVariable("n6"));
	$('#yessub').click(function(){
		alert("操作成功！");
		try
		{
			window.opener=null;
			window.open('','_self');
			window.close();
		} catch(err)
		{
			window.open="https://www.buct.edu.cn/";
		}
		parent.WeixinJSBridge.call('closeWindow');
	});

</script>

<script>


	function run(){
		var time = new Date();//获取系统当前时间
		var year = time.getFullYear();
		var month = time.getMonth()+1;
		var date= time.getDate();//系统时间月份中的日
		var day = time.getDay();//系统时间中的星期值
		var weeks = ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
		var week = weeks[day];//显示为星期几
		var hour = time.getHours();
		var minutes = time.getMinutes();
		var seconds = time.getSeconds();
		if(month<10){
			month = "0"+month;
		}
		if(date<10){
			date = "0"+date;
		}
		if(hour<10){
			hour = "0"+hour;
		}
		if(minutes<10){
			minutes = "0"+minutes;
		}
		if(seconds<10){
			seconds = "0"+seconds;
		}
		//var newDate = year+"年"+month+"月"+date+"日"+week+hour+":"+minutes+":"+seconds;
		document.getElementById("nowtime").innerHTML = year+"-"+month+"-"+date+" "+hour+":"+minutes+":"+seconds;
		setTimeout('run()',1000);
	}
	run();

</script>
</html>
